﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STX.Domain
{
    public class ActivityPayReport
    {
        private BizActivity activity;
        public ActivityPayReport(BizActivity activity)
        {
            this.activity = activity;
        }

        public string Name
        {
            get
            {
                return activity.Name;
            }
        }

        public DateTime StartTime
        {
            get
            {
                return activity.StartTime;
            }
        }

        public DateTime EndTime
        {
            get
            {
                return activity.EndTime;
            }
        }

        public string ResponsiblePerson
        {
            get
            {
                return activity.ResponsiblePerson;
            }
        }

        public decimal QuotationTotal
        {
            get
            {
                return activity.BizActivityItems.Where(o => !o.IsIncreaseAndDecrease).Sum(o => o.QuotationPrice);
            }
        }

        //public string 
    }
}
